import { useEffect, useLayoutEffect, useState } from 'react'
export default function index() {
  const [title, setTitle] = useState('标题')
  useLayoutEffect(() => {
    console.log("useEffect - 异步更新");
    for (let i = 0; i < 100000; i++) console.log(i)
      setTitle('异步更新标题')
  }, []);
  return (
    <div>{title}</div>
  )
}
